package com.example.pceb.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.pceb.VO.RecruitVo;
import com.example.pceb.entity.Communication;
import com.example.pceb.entity.Recruit;
import com.example.pceb.entity.Resume;
import com.example.pceb.result.Result;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;
import java.util.Objects;

public interface ResumeService extends IService<Resume> {
    //获取所有招聘信息
    Result<List<Recruit>> selectRecruit(RecruitVo recruitVo);
    //根据关键词查找招聘职位
    Result<List<Recruit>> selectRecruitByKeyWords(String key);
    //发送简历
    Result<String> sendRecruit(String username,int recruitId);
    //获取招聘职位详细信息
    Result<Map<String, Object>> getRecruitDetail(int recruitId,String username);
    //收藏招聘信息
    Result<String> toggleCollect(String username,int recruitId);
    //点赞招聘信息
    Result<String> likeRecruit(String username,int recruitId);
    //与hr进行沟通
    Result<String> communicateWithHR(String username,int recruitId,String message);
    //获取与HR的聊天记录
    Result<List<Communication>> getCommunicationHistory(String username, Integer recruitId);
    //检查收藏状态
    boolean isCollected(String username, int recruitId);
    //获取相似职位信息
    List<Recruit> getSimilarRecruits(String enterprise, Integer currentId);
    //根据用户名显示简历
    Resume getByUsername(String username);
    //保存简历
    void saveOrUpdateResume(Resume resume);
    //发送pdf
//    Result sendPdfResume(MultipartFile file,Integer recruitId,String username);

}
